package com.fortune.service;

import com.fortune.dto.in.mTerminalDiscount.TerminalDiscountAddDto;
import com.fortune.dto.in.mTerminalDiscount.TerminalDiscountEditDto;
import com.fortune.dto.in.mTerminalDiscount.TerminalDiscountListDto;
import com.fortune.vo.terminalDiscount.MTerminalDiscount;

import java.util.List;

public interface MTerminalDiscountService {
    /**
     *优惠政策列表
     * @param companyId
     * @param terminalDiscountListDto
     * @return
     */
    List<MTerminalDiscount> queryTerminalDiscountList(String companyId,TerminalDiscountListDto terminalDiscountListDto);

    /**
     * 优惠政策列表个数
     * @param companyId
     * @param terminalDiscountListDto
     * @return
     */
    int queryTerminalDiscountListCount(String companyId,TerminalDiscountListDto terminalDiscountListDto);

    /**
     * 查询优惠政策是否存在
     * @param companyId
     * @param name
     * @return
     */
    int queryTerminalDiscountCountByName(String companyId,String name);

    /**
     *  添加优惠政策
     * @param companyId
     * @param addDto
     * @return
     */
    int addTerminalDiscountCount(String companyId,TerminalDiscountAddDto addDto);

    /**
     * 删除优惠政策
     * @param companyId
     * @param id
     * @return
     */
    int deleteTerminalDiscountCount(String companyId,String id);

    /**
     * 编辑时查询是否存在
     * @param companyId
     * @param name
     * @param id
     * @return
     */
    int queryIsExist(String companyId,String name,String id);

    /**
     * 编辑优惠政策
     * @param companyId
     * @param editDto
     * @return
     */
    int editTerminalDiscountCount(String companyId,TerminalDiscountEditDto editDto);
}
